package game

import "github.com/gin-gonic/gin"

func Bind(relativePath string, engine *gin.Engine) {
	group := engine.Group(relativePath)
	{
		group.POST("/create", create)

		group.POST("/delete", delete)

		group.POST("/update", update)

		group.POST("/get", get)

		group.POST("/list", list)

		group.POST("/generatecode", generateCode)

		group.POST("/search", search)
	}
}
